package march.test_3_15;

import java.util.Arrays;
import java.util.Scanner;

public class TestMain {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String str = scanner.nextLine();
            char[] arr = str.toCharArray();
            for(int i = 0; i < str.length(); i++) {
                arr[i] = change(arr[i]);
            }
            System.out.println(String.valueOf(arr));
        }
    }
    public static char change(char c) {
        if(c == 'E') {
            return 'Z';
        }
        if(c == 'D') {
            return 'Y';
        }
        if(c == 'C') {
            return 'X';
        }
        if(c == 'B') {
            return 'W';
        }
        if(c == 'A') {
            return 'V';
        }
        if(c == ' ') {
            return c;
        }
        return (char) (c - 5);
    }
}
